package star.cloud.asme.person.ndePersonCertification;

import org.apache.ibatis.annotations.Mapper;
import star.cloud.asme.base.mybatis.IBaseMapper;

import java.time.LocalDate;

@Mapper
public interface NdePersonCertificationMapper extends IBaseMapper<NdePersonCertification> {

    int updateIsLatestToTrue(NdePersonCertification ndePersonCertification);

    int updateIsLatestToFalse(NdePersonCertification ndePersonCertification);

    LocalDate getInitNdeDate(NdePersonCertification ndePersonCertification);

    LocalDate getInitMethodDate(NdePersonCertification ndePersonCertification);

    LocalDate getInitMethodDomainDate(NdePersonCertification ndePersonCertification);

    LocalDate getInitMethodDomainLevelDate(NdePersonCertification ndePersonCertification);
}
